package com.cloud.dao;

import com.cloud.pojo.ManagerNotice;
import com.cloud.pojo.ManagerNoticeForManager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 15:17 2022/4/24
 * @Description:
 * @ClassName:
 */

@Mapper
public interface ManagerNoticeDao {

    int create(ManagerNotice managerNotice);

    int update(@Param("id") int id, @Param("title") String title,
               @Param("notice") String notice, @Param("publishTime") Date publishTime);

    int delete(int id);

    List<ManagerNoticeForManager> retrieve(String managerId);
}
